package test;

import util.DateUtil;

import java.util.Date;

/**
 * 日期类测试
 * @author yaojianfeng
 */
public class ChenMeiYu {
    public static void main(String[] args) {
        int intervalDays = DateUtil.getIntervalDays(DateUtil.DateToString(new Date(), "yyyy-MM-dd"), "2020-03-22");
        int dingInterval = DateUtil.getIntervalDays(DateUtil.DateToString(new Date(), "yyyy-MM-dd"), "2020-04-01");
        int lingInterval = DateUtil.getIntervalDays(DateUtil.DateToString(new Date(), "yyyy-MM-dd"), "2020-06-28");
        System.out.println(intervalDays);
        String specifiedDayBefore = DateUtil.getSpecifiedDayBefore(DateUtil.DateToString(new Date(),"yyyy-MM-dd"), intervalDays);
        System.out.println("我和你相识于" + specifiedDayBefore + "那天,我们相爱了" + intervalDays + "天");
        System.out.println("我们的定亲日是2020-04-01,愚人节那天,哈哈哈!还记不记得我在班级群里说的时候 好多同学都不相信啊");
        System.out.println("端午节回家领证,两个大傻帽啥也不懂,2020-06-28稀里糊涂的就把证给领了");

        System.out.println("现在,距离定亲日子已经过去了"+dingInterval+"天.");
        System.out.println("距离我俩领证也已经过去了"+lingInterval+"天.");
        for (int i = 0; i < 10000; i++) {

            System.out.println("陈美羽是全天下最好的老婆!姚剑锋是全天下最好的老公!姚剑锋会爱陈美羽一辈子!执子之手,与子偕老!");
        }

    }
}
